//
//  Movie.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Movie.h"

@implementation Movie

-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setBrand:(NSString *)brand{
    _brand = brand;
}
-(NSString *)brand{
    return _brand;
}
-(void)setLength:(NSInteger)length{
    _length = length;
}
-(NSInteger)length{
    return _length;
}
-(void)setPrice:(NSInteger)price{
    _price = price;
}
-(NSInteger)price{
    return _price;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld %ld",_name,_brand,_length,_price);
}
-(instancetype)initWithName:(NSString *)name withBrand:(NSString *)brand withLength:(NSInteger)length withPrice:(NSInteger)price{
    self = [super init];
    if (self) {
        _name = name;
        _brand = brand;
        _length = length;
        _price = price;
    }
    return self;
}

@end
